﻿<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Basic Data Maintainance</title>
    <link id="newtheme" href="../../EasyUI/Themes/default/easyui.css" rel="stylesheet" />
    <link href="../../Css/CrmStyle.css" rel="stylesheet" />
    <link href="../../EasyUI/Themes/icon.css" rel="stylesheet" />
    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script src="../../EasyUI/jquery.easyui.min.js"></script>
</head>
<body>
    <div id="pnlbdm" class="easyui-panel" title=" Basic Data Maintainance " style="width: 1360px; height: auto">
        <div id="tabbdm" class="easyui-tabs" tabposition="left" style="width: auto; height: auto">
            <div id="pnlLastResult" title=" Last Result" runat="server" data-options="href:'/Pages/Admin/LastResult.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlOutLendar" title="OutSource Lender" data-options="href:'/Pages/Admin/OutSourceLender.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlReferre" title="Referrer" runat="server" data-options="href:'/Pages/Admin/Referrer.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlAssLastResult" title="Assessment Last Result" data-options="href:'/Pages/Admin/AssessmentLasResult.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlEmailAccSetting" title="Email Account Setting" data-options="href:'/Pages/Admin/EmailSetting.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlDefCompanySetting" title="Default Company Setting" data-options="href:'/Pages/Admin/UserDefaultCompany.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
            <div id="pnlSMSTestData" title="SMS Account Setting" data-options="href:'/Pages/Admin/SmsSetting.aspx'" style="padding: 10px; width: auto; height: auto;">
            </div>
        </div>
    </div>
    <div id="dlgDelconfirm" class="easyui-dialog" title="Confirm" style="width: 300px; height: 160px" closed="true" resizable="false" modal="true">
        <h4 id="headertext" style="text-align: center"></h4>
        <div class="fitem" style="text-align: center; padding: 10px; margin-top: 10px">
            <a id="btnDelete" href="javascript:void(0)" class="easyui-linkbutton"  disabled="true">OK </a>
            <a id="btnCancle" href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlgDelconfirm').dialog('close')" disabled="true">Cancel</a>
            <span id="spnanimate">
                <img id="deleteProgress" style="margin-left: 20px" src="../../Media/loading.gif" />
                <label id="lbltimeOut" style="margin-left: 20px">5</label>
            </span>
        </div>
    </div>
</body>
<script type="text/javascript">

    //Get query string params
    function getQuerystring(key, defaultValue) {
        if (defaultValue == null) defaultValue = "";
        key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
        var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
        var qs = regex.exec(window.location.href);
        if (qs == null)
            return defaultValue;
        else {
            return qs[1];
        }
    }

    //Change Theme:
    $(document).ready(function () {
        $('#newtheme').attr('href', '/EasyUI/Themes/' + getQuerystring('Theme', '') + '/easyui.css');
    });

    $('#dlgDelconfirm').dialog({
        onOpen: function () {
            startCounter(5);
        },
        onClose: function () {
            $('#btnDelete').linkbutton('disable');
            $('#btnCancle').linkbutton('disable');
            $('#spnanimate').show();
            $('#lbltimeOut').html('');
        }
    });

    function startCounter(limit) {
        setTimeout(function () {
            if (limit == 0) {
                $('#btnDelete').linkbutton('enable');
                $('#btnCancle').linkbutton('enable');
                $('#spnanimate').hide();
            }
            else {
                $('#lbltimeOut').html(limit);
                startCounter(limit - 1);
            }
        }, 500);
    }


   
</script>
</html>
